﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Win32;

namespace ThePingMasterConfiguration.Services
{
    public class OpenFileDialogService : IOpenFileDialogService
    {
        public bool ShowDialog(out string filename)
        {
            OpenFileDialog dlg = new OpenFileDialog();
            bool? returnValue = dlg.ShowDialog();
            filename = dlg.FileName;
            return returnValue.HasValue ? returnValue.Value : false;
        }
    }
}
